<template>
	<div>
		<zt-layout
		:titleList="titleList"
		@ztClickItem="ztClickItem"
		>
			<template v-slot:zt-main>
					<keep-alive>
						<router-view></router-view>
					</keep-alive>
			</template>
		</zt-layout>
	</div>
</template>

<script>
	import ztLayout from '../../components/ztLayout.vue'
	export default {
		data(){
			return{
				titleList:['推荐','学术类','治愈类']
			}
		},
		methods:{
			ztClickItem(index) {
				switch (index) {
					case 0:
						this.$router.push('/wenzahng/recomm')
						break;
					case 1:
						this.$router.push('/wenzahng/xueshu')
						break;
					case 2:
						this.$router.push('/wenzahng/zhiyu')
						break;
					default:
						break;
				}
			}
		},
		components:{
			ztLayout
		}
	}
</script>

<style>
</style>

